const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    setupMiddlewares(middle, { app }) {
      app.get('/api/list', (req, res) => {
        res.send({
          code: 200,
          data: ['a', 'b', 'c']
        })
      })

      return  middle
    }
  }
})
